package com.cn.cloud.controller;

import com.cn.cloud.entities.CommonResult;
import com.cn.cloud.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class FeignOrderController {

    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping(value = "/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id) {
        System.out.println("11111111111111111111111");
       return paymentFeignService.getPaymentById(id);
    }
}
